<template>
  <div>
    <ul>
      <li v-for="(v,i) in haowen" :key="i" @click="fun(i)">
        <h1>{{v.title}}</h1>
        <div class="block">
          <div class="left">
            <h5>{{v.people}}</h5>
            <p>{{v.gangwei1}}</p>
          </div>
          <img :src="v.imgurl" alt="">
        </div>
        <p>
          <span>{{v.txt.txt1}}</span><span>{{v.txt.txt2}}</span><span>{{v.txt.txt2}}</span>
        </p>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
    data(){
    return {
      arrid:0
    }
  },
  computed:{
    haowen(){
      return this.$store.state.hao
    }
  },
   methods:{
    // fun(index){
    //   this.arrid = this.$store.state.hao[index].id
    //   this.$router.push({ path: '/detail',query:{ id: this.arrid, i: index }})
    // }
  }
};
</script>

<style scoped>
li{
  margin-bottom: 0.10rem;
  padding: 0.16rem;
  background: #fff;
}
li > h1 {
  margin: 0.08rem 0;
  font-weight: bold;
}
li > .block {
  display: flex;
  align-items: center;
}
li > .block > .left{
  width: 2.80rem;
}
li > .block > .left > h5 {
  margin-bottom: 0.04rem;
  font-size: 0.12rem;
  color: #999;
}
li > .block > .left > p {
  margin: 0.10rem 0;
  font-weight: bold;
  color: #666;
}
li > .block > img{
    width: 0.90rem;
    height: 0.60rem;
}
li > p {
      font-size: 0.14rem;
      color: #999;
}
li > p > span:nth-child(2) {
  margin: 0 0.04rem;
}
</style>